package com.demo.math.equationImpl;

import cn.hutool.core.util.RandomUtil;
import com.demo.math.utils.MathUtil;
import com.demo.math.domain.MathStrategy;

public class JudgeMathStrategy implements MathStrategy {
    @Override
    public String math(int range) {

        int h1 = RandomUtil.randomBoolean() ? 1 : -1;
        int h2 = RandomUtil.randomBoolean() ? 1 : -1;

        return MathUtil.equation(h1, range) + "○" + MathUtil.equation(h2, range);
    }
}
